/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nivri
 */
@Entity
@Table(name = "citas_clientes_servicios")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "CitasClientesServicios.findAll", query = "SELECT c FROM CitasClientesServicios c"),
    @NamedQuery(name = "CitasClientesServicios.findById", query = "SELECT c FROM CitasClientesServicios c WHERE c.id = :id"),
    @NamedQuery(name = "CitasClientesServicios.findByFkClientemascliente", query = "SELECT c FROM CitasClientesServicios c WHERE c.fkCliente = :fkCliente and c.fkCitasclientes = :fkCitasclientes"),
    @NamedQuery(name = "CitasClientesServicios.findByFkServicio", query = "SELECT c FROM CitasClientesServicios c WHERE c.fkServicio = :fkServicio"),
    @NamedQuery(name = "CitasClientesServicios.findByFkCitasclientes", query = "SELECT c FROM CitasClientesServicios c WHERE c.fkCitasclientes = :fkCitasclientes")})
public class CitasClientesServicios implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 36)
    @Column(name = "id")
    private String id;
    @Size(max = 36)
    @Column(name = "fk_cliente")
    private String fkCliente;
    @Size(max = 36)
    @Column(name = "fk_servicio")
    private String fkServicio;
    @Size(max = 36)
    @Column(name = "fk_citasclientes")
    private String fkCitasclientes;

    public CitasClientesServicios() {
    }

    public CitasClientesServicios(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFkCliente() {
        return fkCliente;
    }

    public void setFkCliente(String fkCliente) {
        this.fkCliente = fkCliente;
    }

    public String getFkServicio() {
        return fkServicio;
    }

    public void setFkServicio(String fkServicio) {
        this.fkServicio = fkServicio;
    }

    public String getFkCitasclientes() {
        return fkCitasclientes;
    }

    public void setFkCitasclientes(String fkCitasclientes) {
        this.fkCitasclientes = fkCitasclientes;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CitasClientesServicios)) {
            return false;
        }
        CitasClientesServicios other = (CitasClientesServicios) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entidades.CitasClientesServicios[ id=" + id + " ]";
    }
    
}
